/*河南星辰软件科技有限公司
@copyright Copyright (c) 2010~2022 All rights reserved.
*/
package cn.javaxc.psi.action.supplychainmana;
import java.io.*;
import java.util.*;
import java.sql.*;
import cn.javaxc.model.base.SQL;
import cn.javaxc.model.base.SQLList;
import cn.javaxc.model.base.SQLMap;
import cn.javaxc.model.base.SQLParam;
import cn.javaxc.model.page.BatisPage;
import cn.javaxc.mvcwork.controller.web.TreeBean;
import cn.javaxc.mvcwork.util.common.CommonUtil;
import cn.javaxc.mvcwork.util.common.MapListUtil;
import cn.javaxc.mvcwork.util.helper.FrameHelper;
import cn.javaxc.mvcwork.util.helper.TreeTableHelper;
import org.springframework.beans.factory.annotation.Autowired;
import cn.javaxc.system.action.base.BaseAction;
import cn.javaxc.psi.mapper.supplychainmana.SubsidiaryInformationSupplierMapper;
public class SubsidiaryInformationSupplier extends BaseAction
{
    @Autowired(required=false)
	private SubsidiaryInformationSupplierMapper mapper;
    /**
    供应商附属信息
    */
    
    public Map subsidiaryInformationSupplier() {
        
        Map result=new HashMap();
        SQLParam params=new SQLParam(request,result);
        
        SQLList<SQLMap> s_client_cert=mapper.s_client_cert(params);
        result.put("s_client_cert", s_client_cert);
        
        
        SQLList<SQLMap> s_file_version=mapper.s_file_version(params);
        result.put("s_file_version", s_file_version);
        
        
        SQLList<SQLMap> s_quality=mapper.s_quality(params);
        result.put("s_quality", s_quality);
        
        
        SQLList<SQLMap> s_bank_account=mapper.s_bank_account(params);
        result.put("s_bank_account", s_bank_account);
        
        return result;
    }
    /**
    修改证书
    */
    
    public Map amendmentCertificateSupplier() {
        
        Map result=new HashMap();
        SQLParam params=new SQLParam(request,result);
        
        SQLList<SQLMap> s_client_cert=mapper.s_client_cert(params);
        SQLMap s_client_cert_emt=s_client_cert.getExistfirst();
        result.put("s_client_cert", s_client_cert_emt);
        
        return result;
    }
    /**
    证书明细
    */
    
    public Map certificateSupplierDet() {
        
        Map result=new HashMap();
        SQLParam params=new SQLParam(request,result);
        
        SQLList<SQLMap> s_client_cert=mapper.s_client_cert(params);
        SQLMap s_client_cert_emt=s_client_cert.getExistfirst();
        result.put("s_client_cert", s_client_cert_emt);
        
        return result;
    }
    /**
    修改资质
    */
    
    public Map qualificationSupplierUp() {
        
        Map result=new HashMap();
        SQLParam params=new SQLParam(request,result);
        
        SQLList<SQLMap> s_quality=mapper.s_quality(params);
        SQLMap s_quality_emt=s_quality.getExistfirst();
        result.put("s_quality", s_quality_emt);
        
        return result;
    }
    /**
    修改银行账户
    */
    
    public Map accountSupplierUp() {
        
        Map result=new HashMap();
        SQLParam params=new SQLParam(request,result);
        
        SQLList<SQLMap> s_bank_account=mapper.s_bank_account(params);
        SQLMap s_bank_account_emt=s_bank_account.getExistfirst();
        result.put("s_bank_account", s_bank_account_emt);
        
        return result;
    }
    /**
    */
    
    public Map d_quality() {
        
        Map result=new HashMap();
        SQLParam params=new SQLParam(request,result);
        
        mapper.d_quality(params);
        
        return result;
    }
    /**
    */
    
    public Map d_bank_account() {
        
        Map result=new HashMap();
        SQLParam params=new SQLParam(request,result);
        
        mapper.d_bank_account(params);
        
        return result;
    }
    /**
    修改证书修改
    */
    
    public Map amendmentCertificateSupplierSubmit() {
        
        Map result=new HashMap();
        SQLParam params=new SQLParam(request,result);
        
        mapper.amendmentCertificateSupplierSubmit(params);
        
        return result;
    }
    /**
    增加证书修改
    */
    
    public Map addCertificateSupplierSubmit() {
        
        Map result=new HashMap();
        SQLParam params=new SQLParam(request,result);
        
        int CMID1 = mapper.CMID1(params);
        result.put("CMID1", CMID1);
        
        return result;
    }
    /**
    增加资质修改
    */
    
    public Map qualificationSupplierAddSubmit() {
        
        Map result=new HashMap();
        SQLParam params=new SQLParam(request,result);
        
        params.def("fileid",null);
        int i_client_quality = mapper.i_client_quality(params);
        result.put("i_client_quality", i_client_quality);
        
        return result;
    }
    /**
    修改资质修改
    */
    
    public Map qualificationSupplierUpSubmit() {
        
        Map result=new HashMap();
        SQLParam params=new SQLParam(request,result);
        
        params.def("fileid",-1);
        mapper.qualificationSupplierUpSubmit(params);
        
        return result;
    }
    /**
    增加银行账户修改
    */
    
    public Map accountSupplierAddSubmit() {
        
        Map result=new HashMap();
        SQLParam params=new SQLParam(request,result);
        
        int i_bank_account = mapper.i_bank_account(params);
        result.put("i_bank_account", i_bank_account);
        
        return result;
    }
    /**
    修改银行账户修改
    */
    
    public Map accountSupplierUpSubmit() {
        
        Map result=new HashMap();
        SQLParam params=new SQLParam(request,result);
        
        int i_bank_account = mapper.i_bank_account(params);
        result.put("i_bank_account", i_bank_account);
        
        return result;
    }
}